<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>新闻详细页</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
<style>
body{
font-size:14px;
font-family:微软雅黑;
}
li {
    list-style-type: none;
}
a {
    color: #252525;
    text-decoration: none;
}
#cont{
width:600px;
margin:0 auto;
}
#news{
}
#news ul li{
height: 27px;
line-height: 27px;
font-size: 14px;
color:c1c1c1;
padding-left: 9px;
}

</style>
  </head>
  
  <body>
	  <div class="cont" id="cont">
	   	  <div></div>
		  <div class="news" id="news">
		  	<input id="newsid" type="hidden" value="${requestScope.news.id}"/>
		  	<h1 id="title">${requestScope.news.title}</h1>
		  	<span>来源：${requestScope.news.source}&nbsp;&nbsp;发布时间：<fmt:formatDate value="${requestScope.news.pubtime}" pattern="yyyy.MM.dd HH:mm:ss"/></span>
		    <div id="content"></div>
		    <input id="content11" type="hidden" value="${requestScope.news.content}"/>
		    <p id="publishByName">编辑：${requestScope.news.publishedByName}</p>
		    </div>
		    
		</div>
	    
  </body>
  	<script type="text/javascript" charset="utf-8" src="${ctx}/jslib/jquery-1.8.3.js"></script>
	<script type="text/javascript">
	$(function() {
		var content = $("#content11").val();
		$("#content").html(content);
	});
	//跳转页面
	function topage(num){
		var cid = $("#cid").val();
		window.location.href = '${ctx}/news/list?cid='+cid+'&page='+num; 
	}
	
	</script>
</html>
